﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using ChrizNet.Infrastructure;

namespace ChrizNet.Infrastructure.Attributes
{
    /// <summary>
    /// The attibute to export the view.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    [MetadataAttribute]
    public class ViewExportAttribute : ExportAttribute, IViewRegionRegistration
    {
        #region Constructors
        public ViewExportAttribute()
            : base(typeof(object))
        { }

        public ViewExportAttribute(String viewName)
            : base(viewName, typeof(object))
        { }
        #endregion Constructors

        #region Properties
        /// <summary>
        /// The region name.
        /// </summary>
        public String RegionName { get; set; }
        #endregion Properties
    }
}
